{% extends "base.html" %}

{% block title %}Log: {{ app }} {{ owner }}{% endblock %}

{% block header %}
  <em>{{ app }}</em> app
  {% if user != owner %}
    <em>{{ owner }}</em>'s
  {% endif %}
  logs
{% endblock %}

{% block content %}
  <p>
    <a href="{% url MainController %}">Home</a>
    <a href="{% url AppController app %}"><em>{{ app }}</em> app</a>
  </p>
  {% if releasePlace %}
    <a href="{% url AppController#Release app %}">Release</a>
    ({{ releasePlace.count }})
  {% endif %}
  {% if spotPlaces.length %}
    <h2>Spots</h2>
    <ul>
      {% for place in spotPlaces %}
        <li>
          <a href="{% url SpotController app owner place.spot %}">
            {{ place.spot }}
          </a>
          ({{ place.count }})
        </li>
      {% endfor %}
    </ul>
  {% endif %}
{% endblock %}
